package com.wang.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName spark_info
 */
@TableName(value ="spark_info")
@Data
public class SparkInfo implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 图表id
     */
//    @TableField(value = "chart_id")
    private Long chartId;

    /**
     * 提问消耗的token数
     */
//    @TableField(value = "prompt_tokens")
    private Integer promptTokens;

    /**
     * 回答消耗的token数
     */
//    @TableField(value = "completion_tokens")
    private Integer completionTokens;

    /**
     * 消耗token总数
     */
//    @TableField(value = "total_tokens")
    private Integer totalTokens;

    /**
     * 0-成功 1-失败
     */
//    @TableField(value = "is_success")
    private Integer isSuccess;

    /**
     * 0-未删除 1-已删除
     */
//    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建时间
     */
//    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
//    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 用户id
     */
//    @TableField(value = "user_id")
    private Long userId;

    private static final long serialVersionUID = 1L;
}